package com.example.kaogong.sys.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.kaogong.sys.pojo.Post;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.kaogong.sys.pojo.vo.PostVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 帖子 Mapper 接口
 * </p>
 *
 * @author    
 * @since 2022-04-17
 */

@Mapper
public interface PostMapper extends BaseMapper<Post> {

    Page<PostVo> getAllPost(Page<Post> postPage);

    Page<PostVo> getCurrentUserPost(@Param("page") Page<Post> postPage, @Param("uid") Integer uid);
}
